home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / e / emuiundoc.lha / EMUIundoc / modules-source / MUIundoc.e
Text File  |  1999-01-20  |  9KB  |  234 lines

  1. /***************************************************************************
  2. ** The Hacker's include to MUI v1.8 :-)
  3. **
  4. ** Copyright 1997-98 by Alessandro Zummo
  5. ** azummo@ita.flashnet.it
  6. **
  7. ** Translated to AmigaE at 01/1999 by Rene Zimmerling
  8. **
  9. ** This include is unofficial, use at your own risk!
  10. **
  11. ** You can also find other undocumented tags in emodules:libraries/mui.m :-)
  12. **
  13. ****************************************************************************
  14. ** Class Tree
  15. ****************************************************************************
  16. **
  17. ** rootclass                   (BOOPSI's base class)
  18. ** +--Notify                   (implements notification mechanism)
  19. ** !  +--Area                  (base class for all GUI elements)
  20. ** !     +--Framedisplay       (displays frame specification)
  21. ** !     !  \--Popframe        (popup button to adjust a frame spec)
  22. ** !     +--Imagedisplay       (displays image specification)
  23. ** !     !  \--Popimage        (popup button to adjust an image spec)
  24. ** !     +--Pendisplay         (displays a pen specification)
  25. ** !     !  \--Poppen          (popup button to adjust a pen spec)
  26. ** !     +--Group              (groups other GUI elements)
  27. ** !        +--Register        (handles page groups with titles)
  28. ** !        !  \--Penadjust    (group to adjust a pen)
  29. ** !        +--Frameadjust     (group to adjust a frame)
  30. ** !        +--Imageadjust     (group to adjust an image)
  31. **
  32. */
  33.  
  34. OPT MODULE
  35. OPT PREPROCESS
  36. OPT EXPORT
  37.  
  38. MODULE 'libraries/mui','graphics/gfx'
  39.  
  40. -> Uncomment this if you want be able to use all the undocumented features
  41. -> But remember to modify your libraries/mui.h include
  42.  
  43. /*************************************************************************
  44. ** Black box specification structures for images, pens, frames            
  45. *************************************************************************/
  46.  
  47. /* Defined in mui.m */
  48.  
  49. -> OBJECT mui_penspec
  50. ->    buf[32]:ARRAY OF CHAR
  51. -> ENDOBJECT
  52.  
  53. OBJECT mui_imagespec
  54.    buf[64]:ARRAY OF CHAR
  55. ENDOBJECT
  56.  
  57. OBJECT mui_framespec
  58.    buf[32]:ARRAY OF CHAR
  59. ENDOBJECT
  60.  
  61. -> I'm not sure if MUI_ImageSpec and MUI_FrameSpec are 32 or 64 bytes wide.
  62.  
  63. /*************************************************************************
  64. ** The real MUI_NotifyData structure
  65. *************************************************************************/
  66.  
  67. -> OBJECT mui_notifydata
  68. ->    mnd_globalinfo:ARRAY OF mui_globalinfo
  69. ->    mnd_userdata:LONG
  70. ->    mnd_objectid:LONG
  71. ->    priv1:LONG
  72. ->    mnd_parentobject:PTR TO obj
  73. ->    priv3:LONG
  74. ->    priv4:LONG
  75. -> ENDOBJECT
  76.  
  77. -> #define _parent(obj) muinotifydata(obj)->mnd_parentobject
  78.  
  79. -> #define _parent(obj) xget(obj,muia_parent)
  80.  
  81. -> The use of _parent(obj) macro is strictly forbidden! Use xget(obj,MUIA_Parent) instead.
  82.  
  83. /****************************************************************************/
  84. /** Flags                                                                  **/
  85. /****************************************************************************/
  86.  
  87. #define MADF_OBJECTVISIBLE     Shl(1,14) // The object is visible
  88. #define MUIMRI_INVIRTUALGROUP  Shl(1,29) // The object is inside a virtual group
  89. #define MUIMRI_ISVIRTUALGROUP  Shl(1,30) // The object is a virtual group
  90.  
  91.  
  92. /****************************************************************************/
  93. /** Crawling                                                               **/
  94. /****************************************************************************/
  95.  
  96. #define MUIC_Crawling "Crawling.mcc"
  97. #define CrawlingObject MUI_NewObject(MUIC_Crawling
  98.  
  99. /****************************************************************************/
  100. /** Application                                                            **/
  101. /****************************************************************************/
  102.  
  103. /* Attributes */
  104.  
  105. #define MUIA_Application_UsedClasses   $8042E9A7 /* V20 (!) */
  106.  
  107.  
  108. /****************************************************************************/
  109. /** Window                                                                 **/
  110. /****************************************************************************/
  111.  
  112. /* Methods */
  113.  
  114. #define MUIM_Window_ActionIconify $80422cc0 /* V18 */
  115. #define MUIM_Window_Cleanup       $8042ab26 /* Custom Class */ /* V18 */
  116. #define MUIM_Window_Setup         $8042c34c /* Custom Class */ /* V18 */
  117.  
  118. #define MUIP_Window_Cleanup       (methodid:LONG) /* Custom Class */
  119. #define MUIP_Window_Setup         (methodid:LONG) /* Custom Class */
  120.  
  121. /* Attributes */
  122.  
  123. #define MUIA_Window_DisableKeys   $80424c36 /* V15 isg ULONG */
  124.  
  125.  
  126. /****************************************************************************/
  127. /** Area                                                                   **/
  128. /****************************************************************************/
  129.  
  130. /* Methods */
  131.  
  132. #define MUIM_DoDrag          $804216bb /* V18 */ /* Custom Class */
  133. #define MUIM_CreateDragImage $8042eb6f /* V18 */ /* Custom Class */
  134. #define MUIM_DeleteDragImage $80423037 /* V18 */ /* Custom Class */
  135. #define MUIM_GoActive        $8042491a
  136. #define MUIM_GoInactive      $80422c0c
  137. #define MUIM_CustomBackfill  $80428d73
  138.  
  139. #define MUIP_CustomBackfill  (methodid:LONG,left:LONG,top:LONG,right:LONG,bottom:LONG,xoffset:LONG,yoffset:LONG)
  140. #define MUIP_DeleteDragImage (methodid:LONG,di:mui_dragimage)
  141. #define MUIP_CreateDragImage (methodid:LONG,touchx:LONG,touchy:LONG,flags:LONG) /* Custom Class */
  142. #define MUIP_DoDrag          (methodid:LONG,touchx:LONG,touchy:LONG,flags:LONG) /* Custom Class */
  143.  
  144. /* Attributes */
  145.  
  146. #define MUIA_CustomBackfill  $80420a63
  147.  
  148. #define MUIV_CreateBubble_DontHidePointer Shl(1,0)
  149.  
  150. OBJECT mui_dragimage
  151.    bm:PTR TO bitmap
  152.    width:INT           /* exact width and height of bitmap */
  153.    height:INT
  154.    touchx:INT          /* position of pointer click relative to bitmap */
  155.    touchy:INT
  156.    flags:LONG          /* must be set to 0 */
  157. ENDOBJECT
  158.  
  159. /****************************************************************************/
  160. /** Imagedisplay                                                           **/
  161. /****************************************************************************/
  162.  
  163. /* Attributes */
  164.  
  165. #define MUIA_Imagedisplay_Spec $8042a547 /* V11 isg struct MUI_ImageSpec * */
  166.  
  167.  
  168. /****************************************************************************/
  169. /** Imageadjust                                                            **/
  170. /****************************************************************************/
  171.  
  172. /* Attributes */
  173.  
  174. #define MUIA_Imageadjust_Type  $80422f2b /* V11 i.. LONG */
  175.  
  176.  
  177. /****************************************************************************/
  178. /** Framedisplay                                                           **/
  179. /****************************************************************************/
  180.  
  181. /* Attributes */
  182.  
  183. #define MUIA_Framedisplay_Spec $80421794 /* isg struct MUI_FrameSpec * */
  184.  
  185.  
  186. /****************************************************************************/
  187. /** Prop                                                                   **/
  188. /****************************************************************************/
  189.  
  190. /* Attributes */
  191.  
  192. #define MUIA_Prop_DeltaFactor $80427c5e /* V4 .s. LONG */
  193. #define MUIA_Prop_DoSmooth    $804236ce /* V4 i.. LONG */
  194. #define MUIA_Prop_Release     $80429839 /* V? g BOOL */ /* private */
  195. #define MUIA_Prop_Pressed     $80422cd7 /* V6 g BOOL */ /* private */
  196.  
  197.  
  198. /****************************************************************************/
  199. /** Group                                                                  **/
  200. /****************************************************************************/
  201.  
  202. /* Attributes */
  203.  
  204. #define MUIA_Group_Forward    $80421422 /* V11 .s. BOOL */
  205.  
  206. /****************************************************************************/
  207. /** List                                                                   **/
  208. /****************************************************************************/
  209.  
  210. /* Attributes */
  211.  
  212. #define MUIA_List_Prop_Entries  $8042a8f5 /* V? ??? */
  213. #define MUIA_List_Prop_Visible  $804273e9 /* V? ??? */
  214. #define MUIA_List_Prop_First    $80429df3 /* V? ??? */
  215.  
  216.  
  217. /****************************************************************************/
  218. /** Text                                                                   **/
  219. /****************************************************************************/
  220.  
  221. /* Attributes */
  222.  
  223. #define MUIA_Text_HiCharIdx   $804214f5
  224.  
  225.  
  226. /****************************************************************************/
  227. /** Dtpic                                                                  **/
  228. /****************************************************************************/
  229.  
  230. /* Attributes */
  231.  
  232. #define MUIA_Dtpic_Name $80423d72
  233.  
  234.